﻿using CleanLite.DynamicApi;

namespace CleanLite.DynamicTestService
{
    /// <summary>
    /// 测试服务文件:去除服务类ServiceA的接口
    /// </summary>
    /// <remarks>
    /// <para>假设这是项目里的其他类库文件A</para>
    /// <para>此时有一特殊方法需要作为接口暴露</para>
    /// </remarks>

    public class TestServiceA : IDynamicApi
    {
        /// <summary>
        /// 去除方法A的结尾
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public string SayHelloA(string name)
        {
            return $"Hello, {name}!";
        }

        /// <summary>
        /// 去除OK结尾
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public string SayHello1OK(string name)
        {
            return $"Hello, {name}!";
        }

        /// <summary>
        /// 去除YES结尾
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public string SayHello21yes(string name)
        {
            return $"Hello, {name}!";
        }
    }
}